import http from '../utils/request'

/**
 *  考勤管理
 * @type {{list: (function(*): Promise<unknown>), detail: (function(*): Promise<unknown>), submit: (function(*): Promise<unknown>)}}
 */
const UserSalaryDayAPI = {

    /**列表 */
    list: (data) => {
        return http.request({
            url: '/api/restaurant/usersalaryday/list',
            method: 'GET',
            data
        })
    },
    /**详情 */
    detail: (data) => {
        return http.request({
            url: '/api/restaurant/usersalaryday/detail',
            method: 'GET',
            data
        })
    },
    /** 提交 */
    submit: (data) => {
        return http.request({
            url: '/api/restaurant/usersalaryday/submit',
            method: 'POST',
            data
        })
    },

}
export default UserSalaryDayAPI